package com.hr.service.impl;

import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.hr.mapper.AoaProcessListMapper;
import com.hr.entity.AoaProcessList;
import com.hr.service.AoaProcessListService;
import org.springframework.stereotype.Service;
import org.springframework.web.bind.annotation.GetMapping;

/**
 * (AoaProcessList)表服务实现类
 *
 * @author makejava
 * @since 2022-06-23 21:08:37
 */
@Service("aoaProcessListService")
public class AoaProcessListServiceImpl extends ServiceImpl<AoaProcessListMapper, AoaProcessList> implements AoaProcessListService {


    @Override
    public Page<AoaProcessList> queryList(AoaProcessList aoaProcessList, Page<AoaProcessList> page) {
        QueryWrapper<AoaProcessList> queryWrapper = new QueryWrapper<>();
        queryWrapper.eq("process_user_id",aoaProcessList.getProcessUserId());
        page = this.baseMapper.selectPage(page, queryWrapper);
        return page;
    }
}

